using System.Runtime.InteropServices;

namespace NetFrameworkExtensions.GAC
{
  internal static class NativeMethods
  {
    // Fields
    public const int E_INSUFFICIENT_BUFFER = -2147024774;
    public const uint VSITEMID_ROOT = 0xfffffffe;

    // Methods
    [DllImport("fusion.dll", CharSet = CharSet.Auto)]
    internal static extern int CreateAssemblyCache(out IAssemblyCache ppAsmCache, uint dwReserved);
    public static bool Failed(int hr)
    {
      return (hr < 0);
    }
  }
}